Optimal. Leaf size=45 \[ \frac {x}{2 \sqrt {2}}-\frac {\text {ArcTan}\left (\frac {\cos (x) \sin (x)}{1+\sqrt {2}+\cos ^2(x)}\right )}{2 \sqrt {2}}-\frac {\cot (x)}{2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 45, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.300, Rules used = {3288, 396, 209}
\begin {gather*} -\frac {\text {ArcTan}\left (\frac {\sin (x) \cos (x)}{\cos ^2(x)+\sqrt {2}+1}\right )}{2 \sqrt {2}}+\frac {x}{2 \sqrt {2}}-\frac {\cot (x)}{2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 209
Rule 396
Rule 3288
Rubi steps
\begin {align*} \int \frac {1}{1-\cos ^4(x)} \, dx &=-\text {Subst}\left (\int \frac {1+x^2}{1+2 x^2} \, dx,x,\cot (x)\right )\\ &=-\frac {\cot (x)}{2}-\frac {1}{2} \text {Subst}\left (\int \frac {1}{1+2 x^2} \, dx,x,\cot (x)\right )\\ &=\frac {x}{2 \sqrt {2}}-\frac {\tan ^{-1}\left (\frac {\cos (x) \sin (x)}{1+\sqrt {2}+\cos ^2(x)}\right )}{2 \sqrt {2}}-\frac {\cot (x)}{2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.06, size = 24, normalized size = 0.53 \begin {gather*} \frac {1}{4} \left (\sqrt {2} \text {ArcTan}\left (\frac {\tan (x)}{\sqrt {2}}\right )-2 \cot (x)\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.06, size = 21, normalized size = 0.47
method | result | size |
default | \(-\frac {1}{2 \tan \left (x \right )}+\frac {\arctan \left (\frac {\tan \left (x \right ) \sqrt {2}}{2}\right ) \sqrt {2}}{4}\) | \(21\) |
risch | \(-\frac {i}{{\mathrm e}^{2 i x}-1}+\frac {i \sqrt {2}\, \ln \left ({\mathrm e}^{2 i x}+2 \sqrt {2}+3\right )}{8}-\frac {i \sqrt {2}\, \ln \left ({\mathrm e}^{2 i x}-2 \sqrt {2}+3\right )}{8}\) | \(52\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.48, size = 20, normalized size = 0.44 \begin {gather*} \frac {1}{4} \, \sqrt {2} \arctan \left (\frac {1}{2} \, \sqrt {2} \tan \left (x\right )\right ) - \frac {1}{2 \, \tan \left (x\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.41, size = 43, normalized size = 0.96 \begin {gather*} -\frac {\sqrt {2} \arctan \left (\frac {3 \, \sqrt {2} \cos \left (x\right )^{2} - \sqrt {2}}{4 \, \cos \left (x\right ) \sin \left (x\right )}\right ) \sin \left (x\right ) + 4 \, \cos \left (x\right )}{8 \, \sin \left (x\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.63, size = 78, normalized size = 1.73 \begin {gather*} \frac {\sqrt {2} \left (\operatorname {atan}{\left (\sqrt {2} \tan {\left (\frac {x}{2} \right )} - 1 \right )} + \pi \left \lfloor {\frac {\frac {x}{2} - \frac {\pi }{2}}{\pi }}\right \rfloor \right )}{4} + \frac {\sqrt {2} \left (\operatorname {atan}{\left (\sqrt {2} \tan {\left (\frac {x}{2} \right )} + 1 \right )} + \pi \left \lfloor {\frac {\frac {x}{2} - \frac {\pi }{2}}{\pi }}\right \rfloor \right )}{4} + \frac {\tan {\left (\frac {x}{2} \right )}}{4} - \frac {1}{4 \tan {\left (\frac {x}{2} \right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.40, size = 53, normalized size = 1.18 \begin {gather*} \frac {1}{4} \, \sqrt {2} {\left (x + \arctan \left (-\frac {\sqrt {2} \sin \left (2 \, x\right ) - \sin \left (2 \, x\right )}{\sqrt {2} \cos \left (2 \, x\right ) + \sqrt {2} - \cos \left (2 \, x\right ) + 1}\right )\right )} - \frac {1}{2 \, \tan \left (x\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 2.16, size = 20, normalized size = 0.44 \begin {gather*} \frac {\sqrt {2}\,\mathrm {atan}\left (\frac {\sqrt {2}\,\mathrm {tan}\left (x\right )}{2}\right )}{4}-\frac {1}{2\,\mathrm {tan}\left (x\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________